<?php
/**
 * Created by PhpStorm.
 * User: 93195
 * Date: 2018/6/14
 * Time: 18:03
 */
class signInModule extends Module {
    /*
     * 在构造函数中装载所依赖的类或其他文件
    */
    function __construct() {
        $this->includePhp('signIn', 'signIn');
    }


    /*
     * 调用插件资源
    */
    public function call($user, $method, $params) {
        switch ($method) {
            case 'index':
                $id = $params->id;
                signIn::index($id);
                break;
            case 'signInIndex':
                $signInId = $params->id;
                signIn::signInIndex($signInId);
                break;
        }
    }
}


$module = new signInModule();
Module::addModule($module);